﻿using Share;
using System.ComponentModel;
using UnityEngine;
[CreateAssetMenu(fileName = "AudioConfig", menuName = "Scriptable Objects/AudioConfig")]
public class AudioConfig : SingletonScriptableObject<AudioConfig>
{
    public enum eSoundType
    {
        [Description("背景")]
        BGM = 0,
        [Description("场景音效")]
        SceneEffect,
        [Description("技能音效")]
        Skill,
        [Description("界面音效")]
        UI,
        [Description("对话")]
        Dialog,
        [Description("场景演讲")]
        Speech,
        num,
    }

    public string[] m_AudioPath = new string[(int)eSoundType.num];


    public string GetAudioFullName(string audioName, eSoundType audioType)
    {
        return $"{m_AudioPath[(int)audioType]}/" + audioName;
    }

}
